<template>
  <div>
    <el-tabs type="border-card" style="height: 600px">
      <el-tab-pane label="手风琴">
        <div class="demo-collapse">
          <el-collapse v-model="activeName" accordion>
            <el-collapse-item title="吃" name="1">
              <div>今天吃啥子！！！！！！罗非鱼。</div>
            </el-collapse-item>
            <el-collapse-item title="喝" name="2">
              <div>今天喝什么！！！！！！！来瓶脉动</div>
            </el-collapse-item>
            <el-collapse-item title="玩" name="3">
              <div>今天玩什么！！！！！！！写代码</div>
            </el-collapse-item>
            <el-collapse-item title="乐" name="4">
              <div>今天有什么快乐！！！！！刷抖音</div>
            </el-collapse-item>
          </el-collapse>
        </div>
      </el-tab-pane>
      <el-tab-pane label="时间线">
        <div class="block">
          <el-timeline>
            <el-timeline-item timestamp="2021/11/05" placement="top">
              <el-card>
                <h4>工作中等待EDG夺冠</h4>
                <p>2021年11月5日继续工作</p>
              </el-card>
            </el-timeline-item>
            <el-timeline-item timestamp="2021/11/06" placement="top">
              <el-card>
                <h4>熬夜看完EDG夺冠</h4>
                <p>2021年11月6日晚上9点下班回家看比赛</p>
              </el-card>
            </el-timeline-item>
            <el-timeline-item timestamp="2021/11/07" placement="top">
              <el-card>
                <h4>我们是冠军！！！睡觉！！！</h4>
                <p>EDG夺冠，第二天休息</p>
              </el-card>
            </el-timeline-item>
          </el-timeline>
        </div>
      </el-tab-pane>
      <el-tab-pane label="水平轮播">
        <el-carousel :interval="3000" arrow="always" height="500px">
          <el-carousel-item v-for="(item, index) in imgItem" :key="index">
            <img class="imger" :src="item.imger" alt="" />
          </el-carousel-item>
        </el-carousel>
      </el-tab-pane>
      <el-tab-pane label="横向轮播">
        <el-carousel :interval="3000" type="card" height="400px">
          <el-carousel-item v-for="(item,index) in imgerList" :key="index">
            <img class="imgers" :src="item.imger" alt="" />
          </el-carousel-item>
        </el-carousel>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeName: "1",
      imgItem: [
        { imger: require("../../assets/img404.webp") },
        { imger: require("../../assets/nothome_top_bg.webp") },
        { imger: require("../../assets/sucai/img1.jpeg") },
        { imger: require("../../assets/sucai/img2.jpeg") },
        { imger: require("../../assets/sucai/img3.jpeg") },
        { imger: require("../../assets/sucai/img4.jpg") },
      ],
      imgerList:[
          { imger: require("../../assets/sucai/img5.jpeg") },
          { imger: require("../../assets/sucai/img6.jpeg") },
          { imger: require("../../assets/sucai/img7.jpeg") },
          { imger: require("../../assets/sucai/img8.jpeg") },
          { imger: require("../../assets/sucai/img9.jpeg") },
      ],
    };
  },
};
</script>

<style lang="less" scoped>

.imger {
  width: 100%;
  height: 100%;
}
.imgers {
  width: 100%;
  height: 100%;
}

</style>